package org.ainlolcat.ainscience.UI;

import org.ainlolcat.ainscience.Controller;
import org.ainlolcat.ainscience.entity.Entity;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 11/4/11
 * Time: 11:04 PM
 * To change this template use File | Settings | File Templates.
 */
public class EntitySelectedValueListener  implements XListPane.SelectedValueListener {
    public void handleSelected(String value) {
        Entity selent = Controller.getInstance().getProject().getEntityByName(value);
        MainWindow.getInstance().showEntity(selent);
    }
}
